﻿using System;

class PrintSquareMatrix

            // Write a program that reads from the console a positive integer number N (N < 20) 
            // and outputs a matrix like the following:	N = 3	N = 4

{
    static void Main()
    {
        Console.Write("Enter value for 'N': ");
        int n = int.Parse(Console.ReadLine());
        int count = 1;
        for (int i = 1; i <= n; i++)
        {
            for (int j = count; j < n + count; j++)
            {
                Console.Write("{0,3}", j);
            }
            Console.WriteLine();
            count++;
        }
    }
}

